/*
 * Copyright (c) 2019. Mikes Lee. All rights reserved.
 */

package com.climber.android.usercenter.api

import com.climber.android.commonsdk.api.entity.APIResponseData
import com.climber.android.commonsdk.app.AppConstants
import com.climber.android.usercenter.entity.AboutUsInfo
import io.ganguo.library.mvp.BaseContext
import io.ganguo.library.mvp.util.CBaseUtils
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Headers

/**
 * Created by Mikes at 2019-11-11 09:42
 */
interface IncService {
    companion object {
        val incServiceAPI: IncService by lazy(LazyThreadSafetyMode.SYNCHRONIZED) {
            CBaseUtils.obtainAppComponentFromContext(BaseContext.getInstance())
                .repositoryManager()
                .obtainRetrofitService(IncService::class.java)
        }
    }

    /**
     * 关于我们
     */
    @Headers("Domain-Name: ${AppConstants.API_BASE_URL}")
    @GET("about")
    fun issueGetAboutUsInfo(): Observable<APIResponseData<AboutUsInfo>>
}